package com.legendshop.oa.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.stereotype.Service;

import com.legendshop.oa.service.TestAsyncService2;
@Service
@EnableAsync  
public class TestAsyncServiceImpl2 implements TestAsyncService2 {
	
	private final Logger log = LoggerFactory.getLogger(TestAsyncServiceImpl2.class);

	@Override
	@Async
	public void sayHello(String name) {
		log.warn("Hello " + name);

	}

}
